// pages/cost_detail/cost_detail.js
Page({
  data:{
    url:"../../img",
    cost_detail:false,
    setings:{},
    index:0,
    card_sort:["身份证","护照","港澳台通行证","台湾通行证","其他"]
  },
   bindPickerChange: function(e) {
    console.log('picker发送选择改变，携带值为', e.detail.value)
    this.setData({
      index: e.detail.value
    })
  },
  detail(e){
    console.log(e)
    this.setData({
      cost_detail:!this.data.cost_detail
    })
  },
  submit(){
    wx.navigateTo({
      url: '../../pages/pay/pay',
      success: function(res){
        // success
      },
      fail: function() {
        // fail
      },
      complete: function() {
        // complete
      }
    })
  },
  scroll(e){
    console.log(123);
    console.log(e)
    return false;
  },
  onLoad:function(options){
    console.log(options)
   this.setData({
     setings:options
   })
  
  },
  onReady:function(){
    // 页面渲染完成
    wx.getSystemInfo({
  success: function(res) {
        console.log(res.model)
        console.log(res.pixelRatio)
        console.log(res.windowWidth)
        console.log(res.windowHeight)
        console.log(res.language)
        console.log(res.version)
      }
    })
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})